import request from '@/utils/request'

// 查询一站式社区-功能房-预约记录列表
export function listRoomReservation(query) {
  return request({
    url: '/staff/roomReservation/list',
    method: 'get',
    params: query
  })
}

// 查询一站式社区-功能房-预约记录列表
export function getRoomByRoomNoAndTime(query) {
  return request({
    url: '/staff/roomReservation/getRoomByRoomNoAndTime',
    method: 'get',
    params: query
  })
}

// 查询一站式社区-功能房-预约记录详细
export function getRoomReservation(rtId) {
  return request({
    url: '/staff/roomReservation/' + rtId,
    method: 'get'
  })
}

// 新增一站式社区-功能房-预约记录
export function addRoomReservation(data) {
  return request({
    url: '/staff/roomReservation/add',
    method: 'post',
    data: data
  })
}

// 修改一站式社区-功能房-预约记录
export function updateRoomReservation(data) {
  return request({
    url: '/staff/roomReservation/update',
    method: 'post',
    data: data
  })
}

// 删除一站式社区-功能房-预约记录
export function delRoomReservation(rtId) {
  return request({
    url: '/staff/roomReservation/' + rtId,
    method: 'post'
  })
}
